package com.hdoit.kylin.web.home.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.tennetcn.component.web.BaseController;
import com.tennetcn.web.cbase.AuthPassport;

/** 
 * @author      chenghuan
 * @email       79763939@qq.com
 * @createtime  2016年5月5日 上午11:40:25
 * @comment 
 */
@Controller
@RequestMapping(value = "/")
@AuthPassport
public class IndexController extends BaseController{
	
	@Override
	public String getRoutePath() {
		return "home/";
	}
	
	//全局请求变量
	private final String indexViewName="index";
	
	@RequestMapping(value = indexViewName, method = { RequestMethod.GET })
	public String index(Model model){
		return getRoutePath()+indexViewName;
	}
}
